<template>
	<view class="content px-20px" v-if="orderlist.length>0">
		<view class="wrap p-20px mb-20px rounded-10px flex" v-for="(item,index) in orderlist" :key="index">
			<view class="ml-20px flex-1 text-24px">
				<view class="flex flex-x-between leading-40px">
					<view>队长名称：{{item.captainUserName}}</view>
				</view>
				<view class="flex flex-x-between leading-40px">
					<view class="ss">
						成员名称：{{item.userName}} （{{item.isCaptain ? '队长':'成员'}})
					</view>
					<view class="ss">
					团队编号：{{item.teamNo}}
					</view>
				</view>
				<view class="flex flex-x-between">
					<view class="ss">
						加入时间：{{item.addTimeFormat}}
					</view>
				</view>
			</view>
		</view>
		<!-- <view class="rrr">{{UserOrdertext}}</view> -->
		<uv-empty v-if="orderlist.length==0" mode="data"
			icon="https://cdn.uviewui.com/uview/empty/data.png"></uv-empty>
	</view>
</template>

<script setup>
	import {
		reactive,
		ref,
		onMounted
	} from 'vue';
	import {
		onReady
	} from "@dcloudio/uni-app";
	import {
		productPagedApi
	} from '/http/index.js';
	
	let orderlist = ref([])
	let fsPage = reactive({
		pageSize: 10,
		pageIndex: 1,
	});
	
	onMounted(() => {
		let id = uni.getStorageSync('id')
		productPagedApi(id).then(res=>{
			console.log(res,'eeeeeeeeeeee');
			orderlist.value = res.items
		})
	
	
	})
	onReady(()=>{
		uni.hideShareMenu({
			menus: ['shareAppMessage', 'shareTimeline']
		})
	})
	
</script>

<style lang="scss" scoped>
	
	.content {
		min-height:100vh;
		overflow-y: scroll;
		box-sizing: border-box;
		padding-top: 20px;
		background-color: #e6e6e6;
		
		.wrap{
			background-color: #fff;
		}
	}
</style>